package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.App_ClientConfig;

public class App_ClientConfigWapper {
	
	SqlManager manage;
	
	public App_ClientConfigWapper() {
		manage = new SqlManager("appsit1");
	}
	
	public List<App_ClientConfig> selectByPrimaryKey(int iId) {
		@SuppressWarnings("unchecked")
		List<App_ClientConfig> clientConfig = manage.getSelectResults(
				"com.ymttest.database.mapping.App_ClientConfigMapper.selectByPrimaryKey", iId);
		manage.commit();
		
		return clientConfig;
	}
	
	public static void main(String[] args) {
		App_ClientConfigWapper wapper = new App_ClientConfigWapper();
		
		List<App_ClientConfig> configList = wapper.selectByPrimaryKey(1);
		Logger.debug(configList.get(0).getsApp());
	}
}
